ShortPixel\Controller\ApiController C

Total Complexity 120
Dependencies 5
Dependents 3
Total lines 750
Lines of code 473
Logical lines of code 283
Comment lines 137
Methods 18
Properties 5

Methods 18

Method Rating Maintainability Complexity Lines of code
handleResponse()
D
30 36 106
handleSuccess()
B
34 20 91
handleDownload()
A
42 12 46
processMediaItem()
A
47 12 34
getRequest()
A
42 8 48
doRequest()
A
46 8 36
setPreferredProtocol()
S
61 5 11
fromArchive()
S
52 4 23
dumpMediaItem()
S
54 4 19
returnSuccess()
S
63 2 11
getInstance()
S
73 2 5
parseResponse()
S
73 1 5
getSetting()
S
80 1 3
getResultObject()
S
67 1 8
returnFailure()
S
67 1 8
returnRetry()
S
69 1 7
returnOK()
S
69 1 7
__construct()
S
71 1 5